<?xml version="1.0" encoding="UTF-8"?>

<xsl:transform version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:pressless="http://www.pressless-is-priceless.org/"
  xmlns:addon="http://www.pressless-is-priceless.org/addon"
  xmlns:xhtml1="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"

  xmlns:date="http://exslt.org/dates-and-times"
  xmlns:func="http://exslt.org/functions"
  xmlns:math="http://exslt.org/math"
  xmlns:random="http://exslt.org/random"
  xmlns:regexp="http://exslt.org/regular-expressions"
  xmlns:set="http://exslt.org/sets"
  xmlns:str="http://exslt.org/strings"
  xmlns:php="http://www.php.net/xsl"
  extension-element-prefixes="date func math random regexp set str php"
  >

  <xsl:param name="pressless_base_dir" />

  <xsl:param name="pressless_addons_dir" />

  <xsl:param name="pressless_custom_dir" />

  <xsl:template match="/">
    <xsl:apply-templates select="child::node()" />
  </xsl:template>

  <xsl:template match="element()">
    <xsl:element name="{name(.)}">
      <xsl:apply-templates select="attribute::* | child::node()" />
    </xsl:element>
  </xsl:template>

  <xsl:template match="attribute::node() | child::processing-instruction() | child::comment()">
    <xsl:copy-of select="." />
  </xsl:template>

  <xsl:template name="prepend" mode="prepend" match="node()">
    <xsl:call-template name="addon-prepend" />
  </xsl:template>

  <xsl:template name="append" mode="append" match="node()">
    <xsl:call-template name="addon-append" />
  </xsl:template>
</xsl:transform>
